package com.ruoyi.server.domain.dto;

import com.ruoyi.common.base.BaseDTO;
import com.ruoyi.common.core.domain.model.LoginUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 区服任务对象 server_task
 *
 * @author ghostmen
 * @date 2024-10-31
 */
@Data
@ApiModel(description = "区服任务编辑对象")
public class ServerTaskChangeStateDTO extends BaseDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 任务id
     */
    @NotNull(message = "任务id不能为空")
    @ApiModelProperty(value = "任务id", required = true)
    private Long taskId;

    /**
     * 状态：1：发布；2：完成；3：下架
     */
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态：1：发布；2：完成；3：下架", required = true)
    private Integer state;

    /**
     * 登录用户
     */
    @ApiModelProperty(value = "登录用户", hidden = true)
    private LoginUser loginUser;

}
